package org.jeecg.modules.contract.review.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.common.aspect.annotation.AutoRecordLog;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 评审表关联产品
 * @Author: jeecg-boot
 * @Date:   2024-05-30
 * @Version: V1.0
 */
@Data
@TableName("buss_contract_requirement_review_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="buss_contract_requirement_review_goods对象", description="评审表关联产品")

@AutoRecordLog(value = 1,existParent = true,parentFiled="reviewId",parentTable="buss_contract_requirement_review")
public class BussContractRequirementReviewGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**评审表id*/
	@Excel(name = "评审表id", width = 15)
    @ApiModelProperty(value = "评审表id")
    private String reviewId;
	/**产品id*/
	@Excel(name = "产品id", width = 15)
    @ApiModelProperty(value = "产品id")
    private String goodsId;
	/**配方序号*/
	@Excel(name = "配方序号", width = 15)
    @ApiModelProperty(value = "配方序号")
    private String number;
	/**是否生产*/
	@Excel(name = "是否生产", width = 15, dicCode = "is_open")
	@Dict(dicCode = "is_open")
    @ApiModelProperty(value = "是否生产")
    private String isProduction;
	/**主数量*/
	@Excel(name = "主数量", width = 15)
    @ApiModelProperty(value = "主数量")
    private BigDecimal mainQuantity;
	/**辅数量*/
	@Excel(name = "辅数量", width = 15)
    @ApiModelProperty(value = "辅数量")
    private BigDecimal auxiliaryQuantity;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    @Excel(name = "配方id", width = 15)
    @ApiModelProperty(value = "配方id")
    private String formulaId;
    @JsonIgnore
    @ApiModelProperty(value = "日志时间")
    private String logtime;

    /**
     * 父类日志时间-方便历史搜索
     */
    @JsonIgnore
    @ApiModelProperty(value = "日志时间")
    private String parentLogtime;
}
